Drawing Bitmaps
QuickDraw GX provides two methods of drawing a bitmap:
In general, you should use the
- You can create a bitmap shape (by calling the
GXNewBitmap
function, by copying an existing bitmap shape, and so on) and use theGXDrawShape
function to draw the bitmap.- You can create a
gxBitmap
structure and use theGXDrawBitmap
function to draw the bitmap.
GXDrawShape
function to draw any QuickDraw GX graphic, including bitmap shapes. In fact, theGXDrawBitmap
function creates a temporary bitmap shape, uses theGXDrawShape
function to draw it, and then disposes of it. TheGXDrawShape
function is described in the chapter "Shape Objects" in Inside Macintosh: QuickDraw GX Objects.You would typically use the
GXDrawBitmap
function only in simple situations--for example, if you knew you wanted to draw a particular bitmap only once.
Subtopics
- GXDrawBitmap
Main | Page One | What's New | Apple Computer, Inc. | Find It | Contact Us | Help